const fs = require('fs');
const execa = require('execa')

const args = process.argv.slice(2)
const target = args[args.length-1]
console.log('====aaaaa',target);

async function build(target){
  await execa('rollup',['-cw','--environment',`TARGET:${target}`],  // w 一直监控打包的文件变化
  { stdio:'inherit' })  // 将子进程打包的信息共享给父进程
}

build(target)

